package task5;
import java.util.HashSet;
import java.util.Random;
public class Test1 {
    public static void main(String[] args) {
               Random r = new Random();
            HashSet<Integer> ts = new HashSet<Integer>();
              while (ts.size() < 10) {
            int num = r.nextInt(40) + 1;
                       ts.add(num);
                   }
               for (Integer i : ts) {
            System.out.println(i);
            }
    }
}
